import { PartialType } from '@nestjs/mapped-types';
import { IsString } from 'class-validator';
import { User } from 'src/database/entitys/user.entity';

export class ModifyPasswordDto extends PartialType(User) {
  /**
   * 旧密码
   */
  @IsString()
  oldPassword: string;

  /**
   * 新密码
   */
  @IsString()
  newPassword: string;
}
